<template>
  <div id="app">
    <!-- 3、使用组件 -->
    <vue-editor v-model="content"></vue-editor>
    <div @click="add">sss</div>
    <button @click="add"> ddd</button>
  </div>
</template>
 
<script>
// 1、引用包
import { VueEditor } from "vue2-editor";
 
export default {
  // 2、添加组件
  components: {
    VueEditor
  },
 
  data() {
    return {
      content: "<h1>Some initial content</h1>"
    };
  },
  methods: {
    add(){
      console.log(this.content,"this.content");
      
    }
  },
};
</script>